package com.mzj.saas.mservice.roles.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "saas_role_app_ref")
public class RolePermission extends IdEntity {
    /*
     *角色id
     */
    @Column(name = "role_id", nullable = true)
    private Long roleId;
    /*
     *权限Id
     */
    @Column(name = "permission_id", nullable = true)
    private Long permissionId;
    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Long permissionId) {
        this.permissionId = permissionId;
    }
}
